<?php defined('SYSPATH') or die('No direct script access.');

abstract class Controller_Base extends Controller
{
    protected $title  = 'StyleMay';
	protected $layout = 'layout_tpl';
	
	public function print_template($title, $content)
	{
        $this->layout = new View($this->layout);

		$this->layout->title       = $title.' - '.$this->title;
		$this->layout->content     = $content;
		
		$this->response->body($this->layout);
	}

}
